﻿<!--#include file="utf-8.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="seeion.asp"-->

<LINK href="images/style.css" type=text/css rel=stylesheet>
<form  name="add" method="post" action="admin_WebSetup.asp?type=update">
<%if request("type") = "" then%>
<% 
set config=server.createobject("adodb.recordset") 
exec="select top 10 * from config" 
config.open exec,conn,1,1 
%>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="head"><strong>网站设置</strong></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF" class="font">
<tr bgcolor="#FFFFFF">
<td height="25" bgcolor="#FFFFFF">请选择网站语言</td>
<td width="86%" bgcolor="#FFFFFF"><label>
<select name="Language" id="Language">
<option value="Chinese" <%if config("Language") ="Chinese_English" then response.write "selected='selected'" end if%>>中文版</option>
<option value="Chinese_English" <%if config("Language") ="Chinese_English" then response.write "selected='selected'" end if%>>中英双语言版</option>
</select>
</label></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="14%" height="25" bgcolor="#FFFFFF">网站名称 <font color="#FF0000">(中文)</font></td>
<td bgcolor="#FFFFFF"><input name="title" type="text" value="<%=config("title")%>" size="50" /> <input name="id" type="hidden" id="id" value="<%=config("id")%>" /></td>
</tr>
<tr id="EN_1">
<td width="14%" height="25" bgcolor="#FFFFFF">网站名称 <font color="#FF0000">(英文)</font></td>
<td bgcolor="#FFFFFF"><input name="etitle" type="text" value="<%=config("etitle")%>" size="50" /></td>
</tr>
<tr>
<td width="14%" height="2" bgcolor="#FFFFFF">网站关键字
<font color="#FF0000">(中文) </font></td>
<td bgcolor="#FFFFFF"><label>
<input name="keywords" type="text" value="<%=config("keywords")%>" size="50"  />
</label></td>
</tr>
<tr id="EN_2">
<td height="3" bgcolor="#FFFFFF">网站关键字 <font color="#FF0000">(英文) </font></td>
<td bgcolor="#FFFFFF"><input name="ekeywords" type="text" value="<%=config("ekeywords")%>" size="50"  /></td>
</tr>
<tr>
<td height="3" bgcolor="#FFFFFF">网站描述 <font color="#FF0000">(中文) </font></td>
<td bgcolor="#FFFFFF"><input name="description2" type="text" value="<%=config("description")%>" size="50"/></td>
</tr>
<tr id="EN_3">
<td height="3" bgcolor="#FFFFFF">网站描述 <font color="#FF0000">英文) </font></td>
<td bgcolor="#FFFFFF"><input name="edescription2" type="text" value="<%=config("edescription")%>" size="50"/></td>
</tr>
<tr>
<td width="14%" height="12" bgcolor="#FFFFFF">版权信息 <font color="#FF0000">(中文)</font></td>
<td bgcolor="#FFFFFF"><textarea name="copyright" cols="39" rows="4"><%=config("copyright")%></textarea></td>
</tr>
<tr id="EN_4">
<td eight="25" bgcolor="#FFFFFF">版权信息 <font color="#FF0000">(英文)</font></td>
<td bgcolor="#FFFFFF"><textarea name="ecopyright" cols="39" rows="4"><%=config("ecopyright")%></textarea></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#FFFFFF"><label>
<input type="submit" name="button" id="button" value="确定修改" />
</label></td>
</tr>
</table></td>
</tr>
</table>
</form>

<!--#include file="Language.asp"-->
<%else%>
<% 
id=request("id")  
sql="select * from config where id="&id 
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3

rs("title")=request.form("title")
rs("etitle")=request.form("etitle")
rs("url")=request.form("url") 
rs("name")=request.form("name")
rs("ename")=request.form("ename")
rs("mail")=request.form("mail")
rs("tel")=request.form("tel")
rs("fax")=request.form("fax")
rs("dz")=request.form("dz")
rs("edz")=request.form("edz")
rs("copyright")=request.form("copyright") 
rs("ecopyright")=request.form("ecopyright") 
rs("beian")=request.form("beian") 
rs("font_show")=request.form("font_show") 
rs("font_size")=request.form("font_size") 
rs("bg")=request.form("bg") 
rs("js")=request.form("js") 
rs("keywords")=request.form("keywords") 
rs("ekeywords")=request.form("ekeywords") 
rs("description")=request.form("description") 
rs("edescription")=request.form("edescription") 
rs("Language")=request.form("Language") 
rs.update 
rs.close 
if request.form("Language") ="Chinese" then
session("Language")="CN"
else
session("Language")="EN"
end if
response.write "<script>alert('网站设置成功!');window.location.href='admin_WebSetup.asp';</script>"  
%> 
<%end if%>

